package org.anderground.editor.edits;

/**
 * Wraps any exception thrown during performing the {@link Action}
 * 
 * @author Eldar Abusalimov (eldar.abusalimov@gmail.com)
 * 
 */
@SuppressWarnings("serial")
public class ActionException extends Exception {

	/** standard error message */
	private static final String MESSAGE = "Action performing failed";

	/**
	 * default constructor
	 */
	public ActionException() {
		super(MESSAGE);
	}

	/**
	 * @param detailMessage
	 */
	public ActionException(String detailMessage) {
		super(MESSAGE + " : " + detailMessage);
	}

	/**
	 * @param throwable
	 */
	public ActionException(Throwable throwable) {
		super(MESSAGE, throwable);
	}

	/**
	 * @param detailMessage
	 * @param throwable
	 */
	public ActionException(String detailMessage, Throwable throwable) {
		super(MESSAGE + " : " + detailMessage, throwable);
	}

}
